package cn.stronglink.asset.module.sys.permission.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import cn.stronglink.asset.model.Permission;
import cn.stronglink.asset.module.sys.permission.vo.PermissionVo;
import cn.stronglink.asset.module.sys.role.vo.RoleVo;
public interface PermissionMapper {
	
	public List<Permission> qryPermission(@Param("params") Map<String, Object> params);

	public void updatePermissionById(Permission permission);

	public void delPermission(@Param("id") Long id);

	public Integer getPermissionUsers(@Param("id") Long id);

	public int getPermissionByName(@Param("name") String name);

	public void insertPermission(Permission permission);

	public List<PermissionVo> getPermissionList(@Param("pid") Long pid);

	public List<Long> getRolePermission(@Param("id") Long id);

	public void delRolePermissionById(@Param("id") Long id);

	public void createRolePermissionById(RoleVo vo);

	public HashMap<String,Object> getSysPermissionByUsername(@Param("account") String account);

	public HashMap<String, Object> qryUserPermission(@Param("pidList") List<String> pidList);
	
}
